package com.lcb.manager.configuration;

import com.lcb.manager.interceptor.GlobalDataInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

@Configuration
public class WebConfigurer implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new GlobalDataInterceptor()).addPathPatterns("/**").excludePathPatterns("/").excludePathPatterns("/login")
                .excludePathPatterns("/css/**").excludePathPatterns("/js/**").excludePathPatterns("/plugin/**");
    }
}
